package com.onlinemusic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.onlinemusic.pojo.domain.CartList;
import com.onlinemusic.pojo.request.CartListRespo;

import java.util.List;

public interface CartListMapper extends BaseMapper<CartList> {

  /**
   * 查询用户购物车的歌曲
   * @param cartList
   * @return
   */
  List<CartListRespo> selectCartLists(CartList cartList);

  /**
   * 删除购物车中歌曲
   * @param userId
   * @param songIds
   * @return
   */
  Integer delCartListBySongId(Integer userId, List<Integer> songIds);

}
